//
//  SCAppVersionJudgment.h
//  SCFoundationKit
//
//  Created by Chao Sheng on 2023/10/16.
//

#import <Foundation/Foundation.h>

typedef enum {
    SCAppVersionTypeDefault = 0, //默认，不处理
    SCAppVersionTypeUpdate,      //提示更新
    SCAppVersionTypeForceUpdate,  //强制更新
    SCAppVersionTypeMessageWithUnUsed, // 提示信息并app不可用
    SCAppVersionTypeMessage, // 提示信息,app可用
}SCAppVersionType;

NS_ASSUME_NONNULL_BEGIN

/// App版本判断（本地和网络请求返回的版本）
@interface SCAppVersionJudgment : NSObject

/// appStoreUrl APPStore商店应用地址
/// netWorkurl 网络设置应用地址
/// reponse 请求响应返回的数据
- (void)judgeLocalVersionWithAPPStoreVersion:(NSString *)appStoreUrl NetWorkVersion:(NSString *)netWorkurl completion:(void(^)(SCAppVersionType appVersionType,id reponse))completion;;

@end

NS_ASSUME_NONNULL_END
